package project.taobao.microsoft.transaction.provider.one.service.impl;

import org.springframework.stereotype.Service;
import project.taobao.microsoft.transaction.provider.one.service.CalculateService;

@Service
public class CalculateMoneyServiceimpl implements CalculateService {
    // methods
    @Override
    public Double calculateMoney(Double money, boolean isMember) {
        if(isMember){
            return money * 0.9;
        }
        return money;
    }
    // getters, setters

    // constructors
}
